package com.woniuxy.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.woniuxy.entity.ProCredit;
import com.woniuxy.service.ProCreditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: 贷中管理的产品授信
 * @author quanquan
 * @date 2022/9/21 17:44
 * @version 1.0
 */

@RestController
public class ProCreditController extends BaseController {
    @Autowired(required = false)
    ProCreditService proCreditService;

    /**
     * 查询所有的信息
     * @return
     */
    @GetMapping("/listProCredit")
    public TableDataInfo listProCredit(){
        startPage();
        List <ProCredit> list = (List<ProCredit>) proCreditService.findlistProCreditAll();
        return getDataTable(list);
    }
}
